:root{
    --color-1: #00B9F3;
    --color-2: #FFFFFF;
    --color-3: #666;
    --color-4: #2B2B2B;
    --color-5: #000000;
    --color-6: #FFC100;
    --color-7: #D4D4D4;
    --shadow-color:rgba(0,0,0,0.1);
}

.hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1440px;
    margin: 120px auto 0;
    padding: 0 97px;
    height: 582px;
}
.hero h1{
    inline-size: none;
    display: inline-flexbox;
    padding: 0;
    font-size: 64px;
}

.hero-left {
    flex: 1;
    max-height: 582px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.hero-right {
    flex: 1;
    height: 100%;
}

.hero-carousel {
    height: 450px;
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}


.search-container {
    background: var(--color-2);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px var(--shadow-color);
    width: 100%;
    height: 582px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.search-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    height: 80px;
    padding: 0 0;
}

.tab-btn {
    padding: 8px 24px;
    border: none;
    background: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom: 3px solid var(--color-6);
    color:var(--color-1);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.search-input {
    padding-inline: 10px;
    height: 59px;
    width: 100%;
    border: 1px solid #E6E6E6;
    background-color: var(--color-7);
    border-radius: 10px;
    font-size: 16px;
    color:var(--color-4);
    margin-bottom: 30px;
}

.search-btn {
    margin-top: 64px;
    grid-column: 1 / -1;
    background: var(--color-6);
    color: var(--color-4);
    border: none;
    width: 90%;
    margin-inline: auto;
    border-radius: 25px;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #FFE55C;
}

@media (max-width: 1200px) {
    .hero {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        gap: 24px;
        margin-top: 80px;
        height: auto;
        min-height: 800px;
        margin-bottom: 40px;
    }
    
    .hero-left {
        max-height: none;
    }
    
    .hero-right {
        margin-bottom: 40px;
    }
    
    .hero-carousel {
        height: 400px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-h1 {
        font-size: 48px;
    }
    
    .hero-p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0;
        height: 100vh;
        position: relative;
        background: url('../img/casa1.png') center/cover no-repeat;
    }

    .hero-h1,
    .hero h1 {
        font-size: 40px;
        color: #0B090A;
    }
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

    .hero-p {
        display: none;
    }
    

    .hero-carousel,
    .carousel-control,
    .carousel-dots {
        display: none;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        padding: 48px 30px 0;
        color: white;
    }

    .hero-right {
        position: relative;
        z-index: 2;
        padding: 24px 30px 75.4px;
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
    }

    .search-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        height: auto;
        border-radius: 20px;
    }

    .hero-carousel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        padding: 40px 20px;
        color: white;
        text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    }

    .hero-right {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        z-index: 2;
        height: auto;
    }

    .search-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-tabs {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap; /* Prevent wrapping */
        gap: 8px;
        margin-bottom: 24px;
        width: 100%;
    }
    
    .carousel-control {
        display: none;
    }

    .search-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        height: auto;
    }

    .search-input,
    .search-btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .search-input {
        padding: 16px 30px;
    }

    .tab-btn {
        flex: 1;
        white-space: nowrap;
        font-size: 16px;
        padding: 8px 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
   
    
    .hero-p {
        display: none;
    }
    .hero-right{
        width: 100%;
        margin: 0 auto;
    }
    .search-container {
        padding: 16px;
    }
    
    .tab-btn {
        padding: 6px 16px;
        font-size: 16px;
    }
}

.hero-left {
    flex: 1;
    max-height: 582px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.hero-carousel {
    height: 450px;
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.20);
    border-radius: 20px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
    border-radius: 20px;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    z-index: 10;
    cursor: pointer;
}

.carousel-control .circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    font-size: 24px;
    color: #000;
}

.prev { left: 20px; }
.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00B9F3;
    cursor: pointer;
}

.dot.active {
    background: white;
}

.hero-content {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-h1 {
    font-size: 64px;
    line-height: 1.2;
    margin: 0;
}

.hero-p {
    font-size: 24px;
    margin-top: 8px;
}

.hero-right {
    display: flex;
    align-items: center;
}